<?php
/**
 * Created by PhpStorm.
 * User: superxing-cto
 * Date: 17/3/2
 * Time: 10:51
 */

namespace App\Models;

/**
 * Class UserInterestSkill
 * @property integer id
 * @property integer user_id
 * @property integer interest_id
 * @property User user
 * @property Interest interest
 */
class UserInterest extends ApplicationModel
{
    protected $fillable = ['user_id', 'interest_id'];

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function interest()
    {
        return $this->belongsTo(Interest::class);
    }
}